package unit2.part6;

import java.util.Scanner;

public class BankGet {
    // 余额
    public static final float MONEY = 88.88f;

    // psvm
    public static void main(String[] args) {
        // 输入提取值
        Scanner scanner = new Scanner(System.in);
        float input = scanner.nextFloat();
        // 判断提取值是否小于零
        input = input < 0 ? 0 : input;
        // 判断提取值是否大于余额
        input = input > MONEY ? MONEY : input;
        // 输出
        // sout
        System.out.println("提取值：" + input);
        System.out.println("余额：" + (MONEY - input));
    }
}
